<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">

<head>
    <th:block th:include="include :: header('新增收到纪检监察干部问题线索办理情况')" />
    <style>
        .tablecss1 {
            height: 54px;
            text-align: center;
            align-items: center;
            background: #cfe2f3;
            font-family: 宋体;
            font-size: 20pt;
            font-weight: bold;
            border-left: 0.5pt solid #000;
            border-right: 0.5pt solid #000;
            border-top: 0.5pt solid #000;
        }

        .tablecss2 {
            height: 25px;
            text-align: center;
            align-items: center;
            font-family: 宋体;
            font-size: 14pt;
            border-left: 0.5pt solid #000;
            border-bottom: 0.5pt solid #000;
        }

        .tablecss3 {
            text-align: center;
            align-items: center;
            font-family: 宋体;
            font-size: 14pt;
            border-right: 0.5pt solid #000;
            border-bottom: 0.5pt solid #000;
        }

        .tablecss4 {
            height: 25px;
            text-align: center;
            align-items: center;
            font-family: 宋体;
            font-size: 14pt;
            font-weight: bold;
            border-left: 0.5pt solid #000;
            border-right: 0.5pt solid #000;
            border-top: 0.5pt solid #000;
            border-bottom: 0.5pt solid #000;
        }

        .tablecss5 {
            text-align: center;
            align-items: center;
            font-family: 宋体;
            font-size: 14pt;
            font-weight: bold;
            border-left: 0.5pt solid #000;
            border-right: 0.5pt solid #000;
            border-bottom: 0.5pt solid #000;
            border-top: 0.5pt solid #000;
        }

        .tablecss6 {
            text-align: center;
            align-items: center;
            font-family: 宋体;
            font-size: 14pt;
            font-weight: bold;
            border-left: 0.5pt solid #000;
            border-right: 0.5pt solid #000;
            border-bottom: 0.5pt solid #000;
            border-top: 0.5pt solid #000;
        }

        .tablecss7 {
            height: 25px;
            text-align: center;
            align-items: center;
            font-family: 宋体;
            font-size: 14pt;
            font-weight: bold;
            border-left: 0.5pt solid #000;
            border-right: 0.5pt solid #000;
            border-top: 0.5pt solid #000;
            border-bottom: 0.5pt solid #000;
        }

        .tablecss8 {
            text-align: center;
            align-items: center;
            font-family: 宋体;
            font-size: 14pt;
            font-weight: bold;
            border-left: 0.5pt solid #000;
            border-right: 0.5pt solid #000;
            border-bottom: 0.5pt solid #000;
            border-top: 0.5pt solid #000;
        }

        .tablecss9 {
            text-align: center;
            align-items: center;
            font-family: 宋体;
            font-size: 14pt;
            border-left: 0.5pt solid #000;
            border-right: 0.5pt solid #000;
            border-bottom: 0.5pt solid #000;
            border-top: 0.5pt solid #000;
        }

        .bzp {
            text-align: left;
            font-family: 宋体;
            font-size: 10pt;
            color: rgb(224, 19, 19);
        }

        .inputcss {
            width: 100%;
            text-align: center;
            border: none;
            font-family: 宋体;
            font-size: 14pt;
        }
    </style>
</head>

<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-templatetable6-add">
            <input id="progressId" name="workProgress.progressId" th:value="${workProgress.progressId}" type="hidden">
            <input id="status" name="workProgress.status" th:value="${workProgress.status}" type="hidden">
            <table data-type="luckysheet_copy_action_table">
                <colgroup width="130px"></colgroup>
                <colgroup width="140px"></colgroup>
                <colgroup width="123px"></colgroup>
                <colgroup width="123px"></colgroup>
                <colgroup width="134px"></colgroup>
                <colgroup width="120px"></colgroup>
                <colgroup width="131px"></colgroup>
                <tr>
                    <td rowspan="1" colspan="7" class="tablecss1">
                        收到纪检监察干部问题线索办理情况表（年月）</td>
                </tr>
                <tr>
                    <td rowspan="1" colspan="6" class="tablecss2"></td>
                    <td class="tablecss3">单位：件次</td>
                </tr>
                <tr>
                    <td rowspan="1" colspan="2" class="tablecss4">级别|问题线</td>
                    <td class="tablecss5">县处级</td>
                    <td class="tablecss5">乡科级</td>
                    <td class="tablecss5">乡科级以下</td>
                    <td class="tablecss5">其他</td>
                    <td class="tablecss6">合计</td>
                </tr>
                <tr>
                    <td rowspan="5" colspan="1" class="tablecss7">问题线索</td>
                    <td class="tablecss8">信访</td>
                    <td class="tablecss9"><input id="val1" name="workTemplateTable6.val1" th:value="${workTemplateTable6.val1}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val2" name="workTemplateTable6.val2" th:value="${workTemplateTable6.val2}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val3" name="workTemplateTable6.val3" th:value="${workTemplateTable6.val3}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val4" name="workTemplateTable6.val4" th:value="${workTemplateTable6.val4}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val5" name="workTemplateTable6.val5" th:value="${workTemplateTable6.val5}" class="form-control inputcss" readonly></td>
                </tr>
                <tr>
                    <td class="tablecss8">巡视(巡察)</td>
                    <td class="tablecss9"><input id="val6" name="workTemplateTable6.val6" th:value="${workTemplateTable6.val6}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val7" name="workTemplateTable6.val7" th:value="${workTemplateTable6.val7}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val8" name="workTemplateTable6.val8" th:value="${workTemplateTable6.val8}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val9" name="workTemplateTable6.val9" th:value="${workTemplateTable6.val9}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val10" name="workTemplateTable6.val10" th:value="${workTemplateTable6.val10}" class="form-control inputcss" readonly></td>
                </tr>
                <tr>
                    <td class="tablecss8">涉案人交代</td>
                    <td class="tablecss9"><input id="val11" name="workTemplateTable6.val11" th:value="${workTemplateTable6.val11}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val12" name="workTemplateTable6.val12" th:value="${workTemplateTable6.val12}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val13" name="workTemplateTable6.val13" th:value="${workTemplateTable6.val13}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val14" name="workTemplateTable6.val14" th:value="${workTemplateTable6.val14}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val15" name="workTemplateTable6.val15" th:value="${workTemplateTable6.val15}" class="form-control inputcss" readonly></td>
                </tr>
                <tr>
                    <td class="tablecss8">审计</td>
                    <td class="tablecss9"><input id="val16" name="workTemplateTable6.val16" th:value="${workTemplateTable6.val16}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val17" name="workTemplateTable6.val17" th:value="${workTemplateTable6.val17}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val18" name="workTemplateTable6.val18" th:value="${workTemplateTable6.val18}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val19" name="workTemplateTable6.val19" th:value="${workTemplateTable6.val19}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val20" name="workTemplateTable6.val20" th:value="${workTemplateTable6.val20}" class="form-control inputcss" readonly></td>
                </tr>
                <tr>
                    <td class="tablecss8">其他</td>
                    <td class="tablecss9"><input id="val21" name="workTemplateTable6.val21" th:value="${workTemplateTable6.val21}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val22" name="workTemplateTable6.val22" th:value="${workTemplateTable6.val22}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val23" name="workTemplateTable6.val23" th:value="${workTemplateTable6.val23}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val24" name="workTemplateTable6.val24" th:value="${workTemplateTable6.val24}" class="form-control inputcss"></td>
                    <td class="tablecss9"><input id="val25" name="workTemplateTable6.val25" th:value="${workTemplateTable6.val25}" class="form-control inputcss" readonly></td>
                </tr>
                <tr>
                    <td class="tablecss8">合计</td>
                    <td class="tablecss8"></td>
                    <td class="tablecss9"><input id="val26" name="workTemplateTable6.val26" th:value="${workTemplateTable6.val26}" class="form-control inputcss" readonly></td>
                    <td class="tablecss9"><input id="val27" name="workTemplateTable6.val27" th:value="${workTemplateTable6.val27}" class="form-control inputcss" readonly></td>
                    <td class="tablecss9"><input id="val28" name="workTemplateTable6.val28" th:value="${workTemplateTable6.val28}"  class="form-control inputcss" readonly></td>
                    <td class="tablecss9"><input id="val29" name="workTemplateTable6.val29" th:value="${workTemplateTable6.val29}" class="form-control inputcss" readonly></td>
                    <td class="tablecss9"><input id="val30" name="workTemplateTable6.val30" th:value="${workTemplateTable6.val30}" class="form-control inputcss" readonly></td>
                </tr>
                <tr>
                    <td rowspan="1" colspan="7" class="tablecss8">
                        <p class="bzp">
                            填表说明：</br>
                            1. 本表应汇总本级和下级单位数据。</br>
                            2.“其他”项统计被反映人身份不详或反映单位的情况。</p>
                    </td>
                </tr>
            </table>
            <div class="row">
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">填报单位：</label>
                        <div class="form-control-static" th:text="${workProgress.receiveDept}"></div>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">填报人：</label>
                        <div class="form-control-static" th:text="${workProgress.receiveUser}"></div>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">填报时间：</label>
                        <div class="form-control-static" th:text="${today}"></div>
                    </div>
                </div>
            </div>
        </form>
        <div class="row">
            <div class="col-sm-offset-5 col-sm-10">
                <button type="button" class="btn btn-sm btn-success" onclick="submitHandler('3')"><i
                        class="fa fa-plus"></i>保 存</button>&nbsp;
                <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler('4')"><i
                        class="fa fa-check"></i>上 报</button>&nbsp;
                <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i
                        class="fa fa-reply-all"></i>关 闭</button>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "work/templatetable6"
        $("#form-templatetable6-add").validate({
            focusCleanup: true
        });

        function submitHandler(status) {
			if ($.validate.form()) {
				var data = $("#form-templatetable1-add").serializeArray()
                $('#status').val(status)
                console.log("#form-templatetable6-add " + $('#form-templatetable6-add').serialize())
				$.operate.save(prefix + "/add", $('#form-templatetable6-add').serialize());
			}
		}

        function upVal4(k1, k2, k3, k4, sk) {
            let sv = 0
            let v1 = $('#val' + k1).val()
            let v2 = $('#val' + k2).val()
            let v3 = $('#val' + k3).val()
            let v4 = $('#val' + k4).val()
            if (!(v1 === '' || $.common.numValid(v1))) {
                $.modal.msgError("输入值只能为0-9的数字")
                v1 = 0
                $('#val' + k1).val('')
            }
            v2 = v2 == undefined ? 0 : v2
            v3 = v3 == undefined ? 0 : v3
            v4 = v4 == undefined ? 0 : v4
            sv = Number(v1) + Number(v2) + Number(v3) + Number(v4)
            $('#val' + sk).val(sv);
        }
        function upVal5(k1, k2, k3, k4, k5, sk) {
            let sv = 0
            let v1 = $('#val' + k1).val()
            let v2 = $('#val' + k2).val()
            let v3 = $('#val' + k3).val()
            let v4 = $('#val' + k4).val()
            let v5 = $('#val' + k5).val()
            if (!(v1 === '' || $.common.numValid(v1))) {
                $.modal.msgError("输入值只能为0-9的数字")
                v1 = 0
                $('#val' + k1).val('')
            }
            v2 = v2 == undefined ? 0 : v2
            v3 = v3 == undefined ? 0 : v3
            v4 = v4 == undefined ? 0 : v4
            v5 = v5 == undefined ? 0 : v5
            sv = Number(v1) + Number(v2) + Number(v3) + Number(v4) + Number(v5)
            $('#val' + sk).val(sv);
        }
        function upVal20(k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k20, sk) {
            let sv = 0
            let v1 = $('#val' + k1).val()
            let v2 = $('#val' + k2).val()
            let v3 = $('#val' + k3).val()
            let v4 = $('#val' + k4).val()
            let v5 = $('#val' + k5).val()
            let v6 = $('#val' + k6).val()
            let v7 = $('#val' + k7).val()
            let v8 = $('#val' + k8).val()
            let v9 = $('#val' + k9).val()
            let v10 = $('#val' + k10).val()
            let v11 = $('#val' + k11).val()
            let v12 = $('#val' + k12).val()
            let v13 = $('#val' + k13).val()
            let v14 = $('#val' + k14).val()
            let v15 = $('#val' + k15).val()
            let v16 = $('#val' + k16).val()
            let v17 = $('#val' + k17).val()
            let v18 = $('#val' + k18).val()
            let v19 = $('#val' + k19).val()
            let v20 = $('#val' + k20).val()
            if (!(v1 === '' || $.common.numValid(v1))) {
                $.modal.msgError("输入值只能为0-9的数字")
                v1 = 0
                $('#val' + k1).val('')
            }
            v2 = v2 == undefined ? 0 : v2
            v3 = v3 == undefined ? 0 : v3
            v4 = v4 == undefined ? 0 : v4
            v5 = v5 == undefined ? 0 : v5
            v6 = v6 == undefined ? 0 : v6
            v7 = v7 == undefined ? 0 : v7
            v8 = v8 == undefined ? 0 : v8
            v9 = v9 == undefined ? 0 : v9
            v10 = v10 == undefined ? 0 : v10
            v11 = v11 == undefined ? 0 : v11
            v12 = v12 == undefined ? 0 : v12
            v13 = v13 == undefined ? 0 : v13
            v14 = v14 == undefined ? 0 : v14
            v15 = v15 == undefined ? 0 : v15
            v16 = v16 == undefined ? 0 : v16
            v17 = v17 == undefined ? 0 : v17
            v18 = v18 == undefined ? 0 : v18
            v19 = v19 == undefined ? 0 : v19
            v20 = v20 == undefined ? 0 : v20
            sv = Number(v1) + Number(v2) + Number(v3) + Number(v4) + Number(v5) + Number(v6) + Number(v7) + Number(v8) + Number(v9) + Number(v10) + Number(v11) + Number(v12) + Number(v13) + Number(v14) + Number(v15) + Number(v16) + Number(v17) + Number(v18) + Number(v19) + Number(v20)
            $('#val' + sk).val(sv);
        }

        $("#val1").keyup(function () { upVal4(1, 2, 3, 4, 5), upVal5(1, 6, 11, 16, 21, 26), upVal20(1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val2").keyup(function () { upVal4(2, 1, 3, 4, 5), upVal5(2, 7, 12, 17, 22, 27), upVal20(2, 1, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val3").keyup(function () { upVal4(3, 1, 2, 4, 5), upVal5(3, 8, 13, 18, 23, 28), upVal20(3, 1, 2, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val4").keyup(function () { upVal4(4, 1, 2, 3, 5), upVal5(4, 9, 14, 19, 24, 29), upVal20(4, 1, 2, 3, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })

        $("#val6").keyup(function () { upVal4(6, 7, 8, 9, 10), upVal5(6, 1, 11, 16, 21, 26), upVal20(6, 1, 2, 3, 4, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val7").keyup(function () { upVal4(7, 6, 8, 9, 10), upVal5(7, 2, 12, 17, 22, 27), upVal20(7, 1, 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val8").keyup(function () { upVal4(8, 6, 7, 9, 10), upVal5(8, 3, 13, 18, 23, 28), upVal20(8, 1, 2, 3, 4, 6, 7, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val9").keyup(function () { upVal4(9, 6, 7, 8, 10), upVal5(9, 4, 14, 19, 24, 29), upVal20(9, 1, 2, 3, 4, 6, 7, 8, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })

        $("#val11").keyup(function () { upVal4(11, 12, 13, 14, 15), upVal5(11, 1, 6, 16, 21, 26), upVal20(11, 1, 2, 3, 4, 6, 7, 8, 9, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val12").keyup(function () { upVal4(12, 11, 13, 14, 15), upVal5(12, 2, 7, 17, 22, 27), upVal20(12, 1, 2, 3, 4, 6, 7, 8, 9, 11, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val13").keyup(function () { upVal4(13, 11, 12, 14, 15), upVal5(13, 3, 8, 18, 23, 28), upVal20(13, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 14, 16, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val14").keyup(function () { upVal4(14, 11, 12, 13, 15), upVal5(14, 4, 9, 19, 24, 29), upVal20(14, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 16, 17, 18, 19, 21, 22, 23, 24, 30) })

        $("#val16").keyup(function () { upVal4(16, 17, 18, 19, 20), upVal5(16, 1, 6, 11, 21, 26), upVal20(16, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19, 21, 22, 23, 24, 30) })
        $("#val17").keyup(function () { upVal4(17, 16, 18, 19, 20), upVal5(17, 2, 7, 12, 22, 27), upVal20(17, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 18, 19, 21, 22, 23, 24, 30) })
        $("#val18").keyup(function () { upVal4(18, 16, 17, 19, 20), upVal5(18, 3, 8, 13, 23, 28), upVal20(18, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 19, 21, 22, 23, 24, 30) })
        $("#val19").keyup(function () { upVal4(19, 16, 17, 18, 20), upVal5(19, 4, 9, 14, 24, 29), upVal20(19, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 21, 22, 23, 24, 30) })

        $("#val21").keyup(function () { upVal4(21, 22, 23, 24, 25), upVal5(21, 1, 6, 11, 16, 26), upVal20(21, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 22, 23, 24, 30) })
        $("#val22").keyup(function () { upVal4(22, 21, 23, 24, 25), upVal5(22, 2, 7, 12, 17, 27), upVal20(22, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 23, 24, 30) })
        $("#val23").keyup(function () { upVal4(23, 21, 22, 24, 25), upVal5(23, 3, 8, 13, 18, 28), upVal20(23, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 24, 30) })
        $("#val24").keyup(function () { upVal4(24, 21, 22, 23, 25), upVal5(24, 4, 9, 14, 19, 29), upVal20(24, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 30) })

     
    </script>
</body>

</html>